package com.ebpm.designer.pvm
{
	
	import com.ebpm.designer.mainLayout.variable.Variable;
	
	import mx.containers.Canvas;
	
	import spark.components.Group;
	import spark.primitives.BitmapImage;
	import com.ebpm.designer.NodeContainer;
	import com.ebpm.designer.WF;
	
	public class ForkTask extends UserTask
	{
		public function ForkTask(nodeContainer:NodeContainer)
		{
			super(nodeContainer);
		}
		
		override public function initIcon():void
		{
			
			var titleIcon:Canvas = new Canvas();
			titleIcon.x = WF.USERTASK_IMG_X;
			titleIcon.y = WF.USERTASK_IMG_Y;
			titleIcon.width = WF.USERTASK_IMG_WIDTH;
			titleIcon.height = WF.USERTASK_IMG_HEIGHT;
			
			var group:Group = new Group();
			var bi:BitmapImage = new BitmapImage();
			bi.source = WF.Icon_ForkTaskEvent;
			bi.x = 0;
			bi.y = 0;
			bi.width = titleIcon.width;
			bi.height = titleIcon.height;
			group.addElement(bi);
			titleIcon.addElement(group);
			this.addElement(titleIcon);
		}
		
		
		
		
	}
}